import request from '@/utils/request'


export function getAutoAll(){
  return request({
    url:'/init/getAutoAll',
    method:'POST'
  })
}
// 获取操作记录
export function getOperation(data) {
  return request({
    url: '/init/getOperation',
    method: 'post',
    data: data
  })
}
// 设置自动手动
export function setAuto(data) {
  return request({
    url: '/init/setAuto',
    method: 'post',
    data
  })
}

// 开启或者关闭阀门
export function updateAutoAll(data) {
  return request({
    url: '/init/updateAutoAll',
    method: 'post',
    data
  })
}

// 开启或者关闭泵
export function updateAutoPump(data) {
  return request({
    url: '/init/updateAutoPump',
    method: 'post',
    data: data
  })
}

export function getConfig(){
  return request({
    url:'/init/getConfig',
    method:'POST'
  })
}

//
